package org.dromara.config.domain.bo;

import org.dromara.config.domain.KyCustomers;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 客户信息业务对象 ky_customers
 *
 * @author kuyu
 * @date 2023-12-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = KyCustomers.class, reverseConvertGenerate = false)
public class KyCustomersBo extends BaseEntity {

    /**
     * 编号
     */
    @NotNull(message = "编号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 类别
     */
    @NotNull(message = "类别不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long cateId;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 省份
     */
    @NotNull(message = "省份不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long provinceId;

    /**
     * 城市
     */
    @NotNull(message = "城市不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long cityId;

    /**
     * 地区
     */
    @NotNull(message = "地区不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long districtId;

    /**
     * 地址
     */
    @NotBlank(message = "地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String address;

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date deletedAt;


}
